/*
** my_strncmp.c for my_strncmp in /home/chassa_m/rendu/Piscine-C-Jour_06/ex_06
** 
** Made by chassa_m
** Login   <chassa_m@epitech.net>
** 
** Started on  Tue Oct  8 14:09:53 2013 chassa_m
** Last update Tue Oct  8 14:10:37 2013 chassa_m
*/

int	my_strncmp(char *s1, char *s2, int n)
{
  int	value;

  value = 0;
  while (value < n)
    {
      if (s1[value] != s2[value])
	return (s1[value] - s2[value]);
      value = value + 1;
    }
  return (s1[value] - s2[value]);
}
